package com.yunxi.dao.sto;

import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.model.sto.PartnerVehicleTrade;
import com.yunxi.sto.pojo.PartnerVehicleTradeApproveHisVO;
import com.yunxi.sto.pojo.PartnerVehicleTradeDetailListVO;
import com.yunxi.sto.pojo.PartnerVehicleTradeVO;
import java.util.List;

/**
 * <p>
 * 渠道商车辆买卖 Mapper 接口
 * </p>
 *
 * @author caoYong
 * @since 2019-08-30
 */
public interface PartnerVehicleTradeMapper extends BaseMapperPlus<PartnerVehicleTrade> {

    List<PartnerVehicleTradeDetailListVO> detailList(String tradeId);

    List<PartnerVehicleTradeVO> saleFromManager(PartnerVehicleTradeVO partnerVehicleTradeVO);

    List<PartnerVehicleTradeApproveHisVO> approveHis(PartnerVehicleTradeVO partnerVehicleTradeVO);

    PartnerVehicleTradeVO getDetailById(String id);

    String queryAreaCodeByPartnerCode(String partnerCode);

    String queryAreaCodeByUserCode(String userCode);

}
